package com.cdtye.itps.cms.dao.origindata.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import com.cdtye.common.webcore.util.DateUtil;
import com.cdtye.itps.cms.dao.enums.DelFlagEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.Date;

/**
 * @Author: wang lei
 * @Date: 2022/01/10 11:22
 * @Description:
 */
@ApiModel("2C检测作业表")
@Data
@Accessors(chain = true)
@TableName("JCJC_DETECT_C2JOB")
public class JcjcDetectC2Job {

    @TableId(value = "DETECT_JOB_ID", type = IdType.ASSIGN_UUID)
    private String detectJobId;

    @ApiModelProperty(value = "线路")
    private String lineId;

    @ApiModelProperty(value = "原始线路名c2 index需要作为errorCode")
    private String sourceLineName;

    @ApiModelProperty(value = "行别")
    private String directionId;

    @ApiModelProperty(value = "检测设备")
    private String detectDeviceId;

    @ApiModelProperty(value = "起始区站")
    private String beginSiteId;

    @ApiModelProperty(value = "结束区站")
    private String endSiteId;

    @ApiModelProperty(value = "检测日期")
    @JSONField(format = DateUtil.DATE_FORMAT)
    private Date detectDate;

    @ApiModelProperty(value = "备注")
    private String memo;

    @ApiModelProperty(value = "开始录制时间")
    private Date beginRecordTime;

    @ApiModelProperty(value = "结束录制时间")
    private Date endRecordTime;

    @ApiModelProperty(value = "开始公里标")
    private Double beginMark;

    @ApiModelProperty(value = "结束公里标")
    private Double endMark;

    @ApiModelProperty(value = "开始杆号")
    private String beginPillarNo;

    @ApiModelProperty(value = "结束杆号")
    private String endPillarNo;

    @ApiModelProperty(value = "全景图片像素")
    private Integer panoraMicPixel;

    @ApiModelProperty(value = "局部图片像素")
    private Integer partPixel;

    @ApiModelProperty(value = "数据包路径")
    private String dataPath;

    @ApiModelProperty(value = "数据包名")
    private String packetName;

    @ApiModelProperty(value = "基本信息文件名")
    private String infoFileName;

    @ApiModelProperty(value = "索引文件名")
    private String indexFileName;

    @ApiModelProperty(value = "读取基本信息")
    private String readInfoFile;

    @ApiModelProperty(value = "读取索引")
    private Integer readIndexFile;

    @ApiModelProperty(value = "数据包大小（G）")
    private Double packageSize;

    @ApiModelProperty(value = "是否视频")
    private Integer isVideo;

    @ApiModelProperty(value = "2C视频id关联JCJC_DETECT_C2VIDEO 表")
    private String videoId;

    @ApiModelProperty(value = "段")
    private String section;

    @ApiModelProperty(value = "索引标识，0为未获取，1为已获取")
    private Integer indexFlag;

    @ApiModelProperty(value = "唐源索引标识，0为未获取，1为已获取")
    private Integer tyIndexFlag;

    @ApiModelProperty("状态：1启用，0停用")
    private Integer status;

    @ApiModelProperty("创建时间")
    @TableField(value ="CREATE_DATETIME", fill = FieldFill.INSERT)
    private Date createDatetime;

    @ApiModelProperty("更新时间")
    @TableField(value ="UPDATE_DATETIME",fill = FieldFill.INSERT_UPDATE)
    private Date updateDatetime;

    @ApiModelProperty(value = "数据发现来源ID")
    private String discoverSourceId;

    @ApiModelProperty(value = "检测设备编号")
    private String detectDeviceCode;

    @ApiModelProperty(value = "检测设备名称")
    private String detectDeviceName;

    @ApiModelProperty("删除标志，Y=是，N=否")
    private DelFlagEnum delFlag;

    @ApiModelProperty(value = "来源段code")
    private String unitDeptCode;

}
